# test
# FROM gcc:10
# WORKDIR /test/
# COPY test/test.c ./
# RUN gcc test.c -o test
# RUN chmod +x test

# pre/Lexer
# FROM gcc:10
# WORKDIR /app/
# COPY lexer/lex.c ./
# RUN gcc lex.c -o lex
# RUN chmod +x lex 

# # lab1
# FROM gcc:10
# WORKDIR /app/
# COPY lab1/lab1.c ./
# RUN gcc lab1.c -o lab1
# RUN chmod +x lab1 

# # lab2
# FROM gcc:10
# WORKDIR /app/
# COPY lab2/lab2.c ./
# RUN gcc lab2.c -o lab2
# RUN chmod +x lab2

# lab2_make
# FROM gcc:9
# WORKDIR /app/
# COPY lab2_make/source ./source
# COPY lab2_make/include ./include
# COPY lab2_make/Makefile ./
# RUN make clean
# RUN make
# RUN chmod +x main

# # lab3
# FROM gcc:10.2
# WORKDIR /app/
# COPY lab3_make/source ./source
# COPY lab3_make/include ./include
# COPY lab3_make/Makefile ./
# RUN gcc source/main.c source/annotation.c source/lex.c source/syntax.c source/tools.c source/symbol.c -o main -I include/
# RUN chmod +x main

# # lab3
# FROM gcc:10.2
# WORKDIR /app/
# COPY lab3/source ./source
# COPY lab3/include ./include
# COPY lab3/Makefile ./
# RUN make clean
# RUN make
# RUN chmod +x main

# # lab4
# FROM gcc:10.2
# WORKDIR /app/
# COPY lab4/source ./source
# COPY lab4/include ./include
# COPY lab4/Makefile ./
# RUN make clean
# RUN make
# RUN chmod +x main

# # lab5
# FROM gcc:10.2
# WORKDIR /app/
# COPY lab5/source ./source
# COPY lab5/include ./include
# COPY lab5/Makefile ./
# RUN make clean
# RUN make
# RUN chmod +x main

# # lab6
# FROM gcc:10.2
# WORKDIR /app/
# COPY lab6/source ./source
# COPY lab6/include ./include
# COPY lab6/Makefile ./
# RUN make clean
# RUN make
# RUN chmod +x main

# # lab7
# FROM gcc:10.2
# WORKDIR /app/
# COPY lab7/source ./source
# COPY lab7/include ./include
# COPY lab7/Makefile ./
# RUN make clean
# RUN make
# RUN chmod +x main

# # lab8
# FROM gcc:10.2
# WORKDIR /app/
# COPY lab8/source ./source
# COPY lab8/include ./include
# COPY lab8/Makefile ./
# RUN make clean
# RUN make
# RUN chmod +x main

# # lab9
# FROM gcc:10.2
# WORKDIR /app/
# COPY lab9/source ./source
# COPY lab9/include ./include
# COPY lab9/Makefile ./
# RUN make clean
# RUN make
# RUN chmod +x main

# lab10
FROM gcc:10.2
WORKDIR /app/
COPY lab10/source ./source
COPY lab10/include ./include
COPY lab10/Makefile ./
RUN make clean
RUN make
RUN chmod +x main